import Layout from '@/layout';
const customerRoutes = {
  path: '/customer',
  component: Layout,
  redirect: 'account/index',
  meta: {
    title: '客户管理',
    icon: 'peoples',
    permissions: ['查看客户', '管理客户'],
  },
  children: [
    {
      path: 'customer/index',
      name: 'customerList',
      component: () => import('@/views/customer/List'),
      meta: { title: '客户列表', permissions: ['查看客户', '管理客户'] },
    },
    {
      path: 'customer/add',
      name: 'customerAdd',
      component: () => import('@/views/customer/Add'),
      meta: { title: '新增客户'},
      hidden: true,
    },
    {
      path: 'account/index',
      name: 'accountList',
      meta: { title: '账户中心' },
    },
    {
      path: 'renew/index',
      name: 'renewList',
      meta: { title: '充值记录' },
    },
    {
      path: 'contract/add',
      name: 'contractAdd',
      component: ()=>import('@/views/contract/Add'),
      meta: { title: '新增合同' },
      hidden: true,
    },
  ],
};

export default customerRoutes;
